package com.yj.model;

import java.util.Set;

import com.yj.utils.DateUtil;

public class Course {

	private Integer id;
	private Teacher teacher;
	private String name;
	private String type;
	private long startTime;
	private long endTime;
	private Set<Sc> scs;
	private Integer selected;
	private Integer sum;
	private Integer score;

	private String startTimeView;
	private String endTimeView;

	public Course() {

	}

	public Course(Teacher teacher, String name, String type, long startTime, long endTime, Set<Sc> scs, Integer selected,
			Integer sum,Integer score) {
		this.teacher = teacher;
		this.name = name;
		this.type = type;
		this.startTime = startTime;
		this.endTime = endTime;
		this.scs = scs;
		this.selected = selected;
		this.sum = sum;
		this.score = score;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public long getStartTime() {
		return startTime;
	}

	public void setStartTime(long startTime) {
		this.startTime = startTime;
		this.startTimeView = DateUtil.toLongDate(startTime);
	}

	public long getEndTime() {
		return endTime;
	}

	public void setEndTime(long endTime) {
		this.endTime = endTime;
		this.endTimeView = DateUtil.toLongDate(endTime);
	}

	public Integer getSelected() {
		return selected;
	}

	public void setSelected(Integer selected) {
		this.selected = selected;
	}

	public Set<Sc> getScs() {
		return scs;
	}

	public void setScs(Set<Sc> scs) {
		this.scs = scs;
	}

	public Integer getSum() {
		return sum;
	}

	public void setSum(Integer sum) {
		this.sum = sum;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}
	
	public String getStartTimeView() {
		return startTimeView;
	}


	public String getEndTimeView() {
		return endTimeView;
	}

}
